//
//  LCBMessage.m
//  UITableView
//
//  Created by Administrator on 2016/11/13.
//  Copyright © 2016年 Administrator. All rights reserved.
//

#import "LCBMessage.h"


@implementation LCBMessage

//message.messageId = [messageDict objectForKey:@"id"];
//message.from      = [messageDict objectForKey:@"fr"];
//message.to        = [messageDict objectForKey:@"to"];
//message.type      = [[messageDict objectForKey:@"type"] longValue];
//message.content   = [messageDict objectForKey:@"txt"];
//message.fileKey   = [messageDict objectForKey:@"key"];
//message.Messagetype = [ICLCBMessageFMDB MessageType:messageDict];
//message.status    = [[messageDict objectForKey:@"status"] intValue];
//message.date           = [[messageDict objectForKey:@"st"] longValue];
//message.lnk            = [messageDict objectForKey:@"lnk"];
//message.deliveryState  = [[messageDict objectForKey:@"deliveryState"] intValue];
//message.mediaPath = [messageDict objectForKey:@"mediaPath"];


//+ (NSDictionary *)mj_replacedKeyFromPropertyName {
//    return @{@"messageId":@"id",
//             @"from" : @"fr",
//             @"content" : @"txt",
//             @"fileKey" : @"key",
//             @"Messagetype" : @"messagetype",
//             @"date" : @"time"};
//}

+ (instancetype)messageWithDict:(NSDictionary *)dict
{
    LCBMessage * message = [[self alloc] init];
    [message setValuesForKeysWithDictionary:dict];
    return message;
}

@end
